package BookTest;

public abstract class C2Fruit {
    private String variety;
    private String colar;
    private int price;

    public C2Fruit() {}
    public C2Fruit(String variety, String colar, int price) {
        this.variety = variety;
        this.colar = colar;
        this.price = price;
    }
    public void setVariety(String variety) {
        this.variety = variety;
    }
    public String getVariety() {
        return variety;
    }
    public void setColar(String colar) {
        this.colar = colar;
    }
    public String getColar() {
        return colar;
    }
    public void setPrice(int price) {
        this.price = price;
    }
    public int getPrice() {
        return price;
    }
    public abstract void spendMoney();

}

